<span class=label id=label_pm onmouseover="$('label_pm').style.background='#F0F0F0'" onmouseout="$('label_pm').style.background='#E5E5E5'">
  <%size = (users = Task.find(:all,:conditions=>"project_id = #{project.id} and role = 'Project Manager'")).size%>

  <%if size > 0%>
  <%=image_tag("arrow_right.gif",:border=>0,:id=>"arrow_pm")%>
  <%=image_tag("arrow_bellow.gif",:border=>0,:id=>"arrow_b_pm",:style=>"display:none")%>
  <%=link_to "Project Manager".t,"#",:onclick=>"Element.toggle('people_pm');Element.toggle('arrow_pm');Element.toggle('arrow_b_pm')"%>(<%=size%>)
  <div id="people_pm" style="display:none;border:1px #ccc dashed;padding-left:10px">
    <%users.each do |u|%>
    <%=image_tag("person_icon.gif",:border=>0)%> 
    <%=User.find(u.user_id).name%><br/>
    <%end%>
  </div>
  <%else%>
  <%=image_tag("arrow_blank.gif",:border=>0,:id=>"arrow_pm")%> 
  <%=link_to "Project Manager".t,"#"%>(<%=size%>)
  <%end%>
</span>

